<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    //根据项目名称获取招标小组
    String xm = Util.null2String( request.getParameter( "xm" ) );//项目名称
    JSONObject jsonData = new JSONObject();
    String sql = "select id,ry,fzc,to_char(swz) as swz,to_char(jsz) as jsz from uf_zbxz where xm ='" + xm + "'";
    bb.writeLog( sql );
    rs.executeQuery( sql );
    if (rs.next()) {
        String ry = Util.null2String( rs.getString( "ry" ) );//组长
        String fzc = Util.null2String( rs.getString( "fzc" ) );//副组长
        String swz = Util.null2String( rs.getString( "swz" ) );//商务组
        String jsz = Util.null2String( rs.getString( "jsz" ) );//技术组
        jsonData.put( "ry", ry );
        jsonData.put( "fzc", fzc );
        jsonData.put( "swz", swz );
        jsonData.put( "jsz", jsz );
    }

    out.print( jsonData.toJSONString() );
    bb.writeLog( "jsonData=" + jsonData.toJSONString() );
%>


